def errorCreat():
    result = {"result":False}
    try:
        a = 1/0
    except Exception as e:
        result['data'] = e
        return result

result = errorCreat()

if result['result'] == False:
    print(result['data'])


# if type(weaterData) == str:
#     print('yes')


# print()